import i18n from "i18next";
import { initReactI18next } from "react-i18next";

const resources = {
  en: {
    translation: {
      hero: {
        title: "Bhabgs",
        subtitle: "Full Stack Developer & Mobile Engineer",
        description:
          "10 years of frontend experience · NestJS backend · Flutter cross-platform",
        stats: {
          experience: "Years",
          projects: "Projects",
          passion: "Passion",
        },
      },
      skills: {
        title: "Tech Stack",
        frontend: {
          title: "Frontend Development",
          description:
            "10 years of frontend experience, proficient in modern frameworks and toolchains",
        },
        backend: {
          title: "Backend Development",
          description:
            "Building high-performance, scalable backend services with NestJS",
        },
        mobile: {
          title: "Mobile Development",
          description:
            "Developing cross-platform mobile apps with Flutter, one codebase for multiple platforms",
        },
        database: {
          title: "Database",
          description:
            "Familiar with various relational and non-relational database design and optimization",
        },
      },
      management: {
        title: "Management Skills",
        project: {
          title: "Project Management",
          description:
            "Rich project management experience, skilled in agile development processes and requirement management",
        },
        team: {
          title: "Team Management",
          description:
            "Leading technical teams to deliver high-quality products, focusing on team growth and knowledge sharing",
        },
      },
      projects: {
        title: "Featured Projects",
        admin: {
          title: "Enterprise Admin System",
          description:
            "Enterprise-level admin system based on React + NestJS, supporting permission management, data visualization, real-time notifications",
          type: "Web",
        },
        mobile: {
          title: "Cross-platform Mobile App",
          description:
            "Social mobile app developed with Flutter, supporting iOS and Android, including instant messaging and photo sharing",
          type: "Mobile",
        },
        microservice: {
          title: "Microservice Architecture",
          description:
            "NestJS-based microservice architecture, including user service, order service, payment service, supporting high concurrency scenarios",
          type: "Backend",
        },
        visualization: {
          title: "Real-time Data Dashboard",
          description:
            "Real-time data visualization dashboard developed with Vue3 + ECharts, supporting WebSocket data push and dynamic chart updates",
          type: "Visualization",
        },
      },
      contact: {
        title: "Contact Me",
        description:
          "Project collaboration or technical discussion? Feel free to reach out!",
        homepage: "Visit My Homepage",
        github: "GitHub",
      },
      footer: {
        copyright: "© 2024 Bhabgs. All rights reserved.",
      },
    },
  },
  zh: {
    translation: {
      hero: {
        title: "Bhabgs",
        subtitle: "全栈开发人员 & 移动开发工程师",
        description: "10年前端开发经验 · NestJS后端 · Flutter跨平台开发",
        stats: {
          experience: "年经验",
          projects: "项目",
          passion: "热情",
        },
      },
      skills: {
        title: "技术栈",
        frontend: {
          title: "前端开发",
          description: "10年前端开发经验，精通现代前端框架和工具链",
        },
        backend: {
          title: "后端开发",
          description: "使用NestJS构建高性能、可扩展的后端服务",
        },
        mobile: {
          title: "移动开发",
          description: "使用Flutter开发跨平台移动应用，一套代码多端运行",
        },
        database: {
          title: "数据库",
          description: "熟悉各种关系型和非关系型数据库的设计与优化",
        },
      },
      management: {
        title: "管理能力",
        project: {
          title: "项目管理",
          description: "丰富的项目管理经验，擅长敏捷开发流程和需求管理",
        },
        team: {
          title: "团队管理",
          description: "带领技术团队交付高质量产品，注重团队成长和技术分享",
        },
      },
      projects: {
        title: "精选项目",
        admin: {
          title: "企业级后台管理系统",
          description:
            "基于React + NestJS的企业级后台管理系统，支持权限管理、数据可视化、实时通知等功能",
          type: "Web",
        },
        mobile: {
          title: "跨平台移动应用",
          description:
            "使用Flutter开发的社交类移动应用，支持iOS和Android平台，包含即时通讯、图片分享等功能",
          type: "Mobile",
        },
        microservice: {
          title: "微服务架构项目",
          description:
            "基于NestJS的微服务架构，包含用户服务、订单服务、支付服务等，支持高并发场景",
          type: "Backend",
        },
        visualization: {
          title: "实时数据大屏",
          description:
            "使用Vue3 + ECharts开发的实时数据可视化大屏，支持WebSocket实时数据推送和动态图表更新",
          type: "Visualization",
        },
      },
      contact: {
        title: "联系我",
        description: "有项目合作或技术交流？随时欢迎联系！",
        homepage: "访问我的主页",
        github: "GitHub",
      },
      footer: {
        copyright: "© 2024 Bhabgs. All rights reserved.",
      },
    },
  },
};

i18n.use(initReactI18next).init({
  resources,
  lng: "zh", // 默认语言
  fallbackLng: "en",
  interpolation: {
    escapeValue: false,
  },
});

export default i18n;
